package com.igeek.ch06.oo;

import com.igeek.pojo.Orderdetail;
import com.igeek.pojo.OrderdetailCustom;
import com.igeek.pojo.OrdersCustom;

/**
 * @package com.igeek.ch06.oo
 * @Description
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/11/22 15:06
 */
public interface OrdersAndUserMapper {

    //根据订单编号查询订单信息以及下单者的用户信息
    public OrdersCustom selectOrdersAndUserByOid(int id);

    //根据订单明细,关联查询订单明细及商品信息
    public OrderdetailCustom selectOrderdetailsAndItems(int did);

    //根据订单明细,关联查询订单明细及订单信息
    public OrderdetailCustom selectOrderdetailsAndOrders(int did);
}
